package cn.xz.gobang.bean

import android.graphics.drawable.Drawable
import java.io.Serializable

/**
 * 棋盘数据类
 * */
data class ChessPData(
    var type: Int = -1, //下方类型 0-黑，1-白，-1-无效
    var win: Boolean = false, //当前棋子是否构成了五条连线
): Serializable

/**
 *落棋数据类*/
data class ClickData(
    var type: Int = -1, //下方类型 0-黑，1-白，-1-无效
    var position: Int = -1, //落子位置 0-225
):Serializable

/**
 * 用户段位信息
 * */
data class UserDW(
    var userDW: String? = "", //段位
    var userPic: Drawable? = null, //图标
    var userColor: String? = "", //色值
):Serializable

/**
 * 全部用户信息*/
data class GoBangUser(
    var data: ArrayList<GoBangUserData>? = arrayListOf()
):Serializable

data class GoBangUserData(
    var id:String? = "", //用户ID
    var name: String? = "" //用户昵称
):Serializable

/**
*用户详细信息*/
data class UserData(
    var id: String? = "", //用户ID
    var name: String? = "", //用户昵称
    var gameNumber: Int = 0, //对局次数
    var userpart: Int = 0, //积分
):Serializable

/**
 * 意见反馈*/
data class FeedBack(
    var data: ArrayList<FeedBackData> = arrayListOf()
):Serializable

data class FeedBackData(
    var id: String? = "", //用户ID
    var content: String? = "", //内容
):Serializable

/**
 * 玩法说明*/
data class PlayingBean(
    var title: String = "", //标题
    var content: String = "", //内容
    var time: String = "", //日期
): Serializable

/**
 * 单人列表房间*/
data class Single(
    var data: ArrayList<SingleData> = arrayListOf()
): Serializable

data class SingleData(
    var id: String = "", //房主ID
    var roomID: String = "", //当前房间ID
    var num: Int = 0, //当前房间人数
):Serializable

/**
 * 单人房数据*/
data class RoomSingle(
    var num: Int = 0, //当前人数
    var black: String = "", //黑棋ID
    var white: String = "", //白旗ID
    var nowDown: Boolean = true, //当前下棋者 true-黑棋，false-白旗
    var mClickData: ArrayList<ClickData> = arrayListOf() //已下棋子集合
):Serializable

/**
 * 多人房间列表*/
data class RoomDouble(
    var  data: ArrayList<DoubleData> = arrayListOf()
): Serializable

data class DoubleData(
    var roomID: String = "", //当前房间ID 对应具体房间号
    var play0: ArrayList<String> = arrayListOf(), //黑方用户数据
    var play1: ArrayList<String> = arrayListOf(), //白方用户数据
):Serializable

/**
 * 多人房数据*/
data class DoubleRoomData(
    var play0: ArrayList<String> = arrayListOf(), //黑方用户数据
    var play1: ArrayList<String> = arrayListOf(), //白方用户数据
    var nowDown: Boolean = true, //当前下棋者 true-黑棋，false-白旗
    var mClickData: ArrayList<ClickData> = arrayListOf() //已下棋子集合
):Serializable
